package com.freewater.cargotracker.infrastructure.persistence.mybatis.dbobject;

import java.time.LocalDateTime;

public class LegPO {

    private Long id;
    private Long cargoId;
    private Long voyageId;
    private LocationPO loadLocation;
    private LocationPO unloadLocation;
    private LocalDateTime loadTime;
    private LocalDateTime unloadTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getCargoId() {
        return cargoId;
    }

    public void setCargoId(Long cargoId) {
        this.cargoId = cargoId;
    }

    public Long getVoyageId() {
        return voyageId;
    }

    public void setVoyageId(Long voyageId) {
        this.voyageId = voyageId;
    }

    public LocationPO getLoadLocation() {
        return loadLocation;
    }

    public void setLoadLocation(LocationPO loadLocation) {
        this.loadLocation = loadLocation;
    }

    public LocationPO getUnloadLocation() {
        return unloadLocation;
    }

    public void setUnloadLocation(LocationPO unloadLocation) {
        this.unloadLocation = unloadLocation;
    }

    public LocalDateTime getLoadTime() {
        return loadTime;
    }

    public void setLoadTime(LocalDateTime loadTime) {
        this.loadTime = loadTime;
    }

    public LocalDateTime getUnloadTime() {
        return unloadTime;
    }

    public void setUnloadTime(LocalDateTime unloadTime) {
        this.unloadTime = unloadTime;
    }
}
